<!DOCTYPE html>
<html>
<head>
	<link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
<link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
<link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
<link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet">
<!-- Sweet Alert -->
<link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">


    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
</head>
<body class="white-bg" style="color:#333;padding:3px;">
  <div class="page-heade">
       <h2 class="title_color text-center">DP会员管理</h2>
  </div>
<div class="padding-10">
<form action="" class="form-inline" id="form1">
    <table class="table table-bordered">
        <tr><td><label for="">经销商名称：</label><div class="form-group"><input type="text" class="form-control" name="" style="width: 140px"></div><span class="lr_5"></span><button class="btn btn-sm btn-success" type="button">查询</button><span class="lr_5"></span><button class="btn-info btn-sm btn" type="reset" id="reset">清空查询</button></td></tr>
    </table>
</form>
	<table class="table table-striped table-bordered table-hover bud_hei text-center" id="editable">
		<tr class="info">
			<td>序号</td>
      <td style="width: 220px;min-width: 220px">经销商</td>
      <td>微信号</td>
			<td>系统账号</td>
      <td>操作</td>
		</tr>
		<tr>
			<td>1</td>
			<td class="text-left">南京市佳和贸易有限公司</td>
			<td class="text-left">
        <p>微信号：<span>D_hehe</span></p>
        <p class="padding-10">手机号：<span></span></p>
        <p>邮箱地址：<span></span></p>
      </td>
			<td>jiahe</td>
      <td><a href="javascript:;" class="btn btn-sm btn-info resetpas">重设密码</a><span class="lr_5"></span> <a href="javascript:;" class="btn btn-info btn-sm wxset">微信号设置</a></td>
		</tr>
      <td>2</td>
      <td class="text-left">杭州市清江贸易有限公司</td>
      <td class="text-left">
        <p>微信号：<span></span></p>
        <p class="padding-10">手机号: <span></span></p>
        <p>邮箱地址：<span></span></p>
      </td>
      <td><a href="javascript:;" class="btn-info btn-sm btn setbtn">设置</a></td>
      <td>请先设置账号</td>
    </tr>
	</table>
</div>
<script src="__STATIC__/layout/js/jquery.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__STATIC__/layout/js/plugins/validate/jquery.validate.min.js"></script>
<script src="__STATIC__/layout/js/plugins/validate/messages_zh.min.js"></script>

<script src="__STATIC__/layout/js/demo/form-validate-demo.js"></script>
<!-- Sweet alert -->
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
  <script>
  $(document).ready(function(){
      $('#reset').on('click',function () {
            $("#form1 input").each(function(){
                $(this).val('');
            });
            $("#form1 select").each(function(){
                $(this).val('');
            });
            $('#form1').submit()
            return false
        });

      $(".resetpas").each(function(){
          $(this).click(function(){
             layer.open({
                type: 1,
                title: '重设密码',
                 area: ['700px', '500px'],
                fixed: false, //不固定
                maxmin: true,
                content: '<div class="ibox-content"><form class="form-horizontal m-t" id="signupForm">  <div class="form-group">'+
                                '<label class="col-sm-3 control-label">密码<span class="colorRed">*</span>：</label>'+
                                '<div class="col-sm-8">'+
                                    '<input id="password" name="password" class="form-control" type="password">'+
                                '</div>'+
                           '</div>'+
                            '<div class="form-group">'+
                                '<label class="col-sm-3 control-label">确认密码<span class="colorRed">*</span>：</label>'+
                                '<div class="col-sm-8">'+
                                    '<input id="confirm_password" name="confirm_password" class="form-control" type="password">'+
                                    '<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 请再次输入您的密码</span>'+
                                '</div>'+
                            '</div><div class="form-group"><div class="col-sm-4 col-sm-offset-3"><button class="btn btn-primary" type="submit">确定</button><span class="lr_5"></span><button class="btn btn-warning">取消</button></div></div></form></div>'
            });
            return false


          })
      });
        $(".wxset").each(function(){
          $(this).click(function(){
             layer.open({
                type: 1,
                title: '微信号设置',
                 area: ['700px', '500px'],
                fixed: false, //不固定
                maxmin: true,
                content: '<div class="ibox-content"><form class="form-horizontal m-t" id="signupForm">  <div class="form-group"><h2 class="text-center">微信号设置</h2><label class="col-sm-3 control-label">微信号：</label><div class="col-sm-8"><input id="wxnum" name="wxnum" class="form-control" type="text"></div></div><div class="form-group"><label class="col-sm-3 control-label">手机号：</label><div class="col-sm-8"><input id="tellnum" name="tellnum" class="form-control" type="text"></div></div>  <div class="form-group"><label class="col-sm-3 control-label">E-mail：</label><div class="col-sm-8"><input id="email" name="email" class="form-control" type="email"></div></div><div class="form-group"><div class="col-sm-4 col-sm-offset-3"><button class="btn btn-primary" type="submit">确定</button><span class="lr_5"></span><button class="btn btn-warning">取消</button></div></div></form></div>'
            });
            return false


          })
      })

    $(".setbtn").each(function(){
          $(this).click(function(){
             layer.open({
                type: 1,
                title: '微信号设置',
                 area: ['700px', '500px'],
                fixed: false, //不固定
                maxmin: true,
                content: '<div class="ibox-content"><form class="form-horizontal m-t" id="signupForm"> <div class="form-group"><label class="col-sm-3 control-label">用户名：</label><div class="col-sm-8"><input id="username" name="username" class="form-control" type="text" aria-required="true" aria-invalid="true" class="error"></div></div><div class="form-group"><label class="col-sm-3 control-label">密码：</label><div class="col-sm-8"><input id="password" name="password" class="form-control" type="password"></div></div><div class="form-group"><label class="col-sm-3 control-label">确认密码：</label><div class="col-sm-8"><input id="confirm_password" name="confirm_password" class="form-control" type="password"><span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 请再次输入您的密码</span></div></div><div class="form-group"><label class="col-sm-3 control-label">经销商：</label><div class="col-sm-8"><input id="cname" name="name" minlength="2" type="text" class="form-control" required="" aria-required="true"></div></div><div class="form-group"><div class="col-sm-4 col-sm-offset-3"><button class="btn btn-primary" type="submit">确定</button><span class="lr_5"></span><button class="btn btn-warning">取消</button></div></div></form></div>'
            });
            return false


          })
  })
  });
  </script>
</body>
</html>